﻿
Ext.onReady(function() {

        var westTree = new Ext.tree.TreePanel({
            id: 'navTree',
            region: 'west',
            title: '模块导航',
            split: true,
            width: 200,
            minSize: 175,
            maxSize: 400,
            collapsible: true,
            margins: '0 0 0 5',
            rootVisible: false,
            lines: false,
            autoScroll: true,
            loader: new Ext.tree.TreeLoader({
                dataUrl: 'GetTreeList.ashx'
            }),
            root: new Ext.tree.AsyncTreeNode({
                text: 'tree',
                expanded: true
            })
            //end AsyncTreeNode
        });

        var viewport = new Ext.Viewport({
            layout: 'border',
            items: [northHeader, westTree, mainGrid, southCopyright]
        }); //end Ext.Viewport

    });       //end Ext.onReady